package com.pine.admin.modules.system.dao;

import java.util.List;
import java.util.Map;

import com.pine.admin.modules.system.entity.SysPermissionEntity;
import com.pine.admin.modules.system.entity.SysRolePermissionEntity;
import io.swagger.models.auth.In;

/**
 * @author Pine
 * @email 771190883@qq.com
 * @date 2018-06-21 13:55:06
 */
public interface SysRolePermissionDao {

    int deleteByPrimaryKey(Integer id);

    int insertSelective(SysRolePermissionEntity record);

    SysRolePermissionEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysRolePermissionEntity record);

    List<SysRolePermissionEntity> queryAllSysRolePermission(SysRolePermissionEntity record);

    List<SysRolePermissionEntity> querySysRolePermissionsByPage(Map<String, Object> parameter);

    int delete(String id);

    SysRolePermissionEntity querySysRolePermission(SysRolePermissionEntity record);

    //根据用户id查询菜单
    List<SysPermissionEntity> findMenuListByUserId(Integer userId) throws Exception;

    //根据用户id查询权限URL
    List<SysPermissionEntity> findPermissionListByUserId(Integer userId) throws Exception;


    int delRole(Integer sysRoleId);

}
